find the x and y intercepts of a polynomial function